<?php
header("Content-type: text/html; charset=UTF-8");
include '../GLOBAL.php';
$sql = new mysql_yp();
$sql->query("SET NAMES utf8");//设置UTF8

$id=intval($_GET['id']);
if(!$catename=$sql->result("SELECT  gamename  FROM property_state_list WHERE id=$id  ORDER BY gamename ASC")) {
echo 'WRONG ID';
exit;
}

$sql->query("SELECT * FROM property_city_list  
								WHERE isgamearea=1 AND gameid=$id");
						
$submenu_name=array();$area2en=array();$area2sc=array();			
while($sql->next_record()) {
	$id1 = $sql->f('id');
	$submenu_name[$id1]=$sql->f('gamearea');	 
}

//print_r($submenu_name);

//citys
$citys=array();		

if(count($submenu_name)>0){
foreach( $submenu_name as $kk => $vv ){ 
$sql->query("SELECT * FROM property_city_list WHERE gamearea=$kk ORDER BY gamegroup ASC");													
while($sql->next_record()) {
	$citys[$kk][] = $sql->f('gamegroup');	 
}
}
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Property</title>
<style type="text/css">
<!--
@import url("property.css");
@import url("homePage_keywordForm.css");
.STYLE10 {font-size: 18pt}
-->
</style>
</head>


<body>
<script type="text/javascript" src="/yp/js/wz_tooltip.js"></script>
 <table width="960" height="120" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="340"><a href="/yp/"><img src="../images/logo.gif" width="216" height="113" /></a></td>
      <td valign="middle"><img src="images/fc1_02.gif" width="609" height="79" /></td>
    </tr>
</table><table width="960" height="40" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="9" colspan="9" bgcolor="#639819">&nbsp;</td>
    </tr>
    <tr>
      <td width="340" height="31" align="center" bgcolor="#639819"><span class="back">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/back-san.gif" width="7" height="8" />&nbsp;&nbsp;<a href="index.html" class="back">Home</a><a href="111" class="back"></a></span></td>
      <td bgcolor="#639819"><a href="list_buy.html"><img src="images/fc1_05.gif" width="116" height="31" border="0" /></a></td>
      <td width="3" bgcolor="#639819">&nbsp;</td>
      <td bgcolor="#639819"><a href="list_rent.html"><img src="images/fc1_07.gif" width="117" height="31" border="0" /></a></td>
      <td width="3" bgcolor="#639819">&nbsp;</td>
      <td bgcolor="#639819"><a href="list_sell.html"><img src="images/fc1_09.gif" width="117" height="31" border="0" /></a></td>
      <td width="3" bgcolor="#639819">&nbsp;</td>
      <td bgcolor="#639819"><a href="myproperty.php"><img src="images/fc1_11.gif" width="200" height="31" border="0" /></a></td>
      <td width="102" align="center" bgcolor="#639819"><iframe id="tmc-ticker" style="WIDTH: 100%; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; HEIGHT: 28px; BORDER-BOTTOM-STYLE: none" src="status.php" frameborder="no" scrolling="No"></iframe></td>
    </tr>
  </table>
  <table width="960" height="10" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#d8e7b0">
    <tr>
      <td>&nbsp;</td>
    </tr>
</table>
  <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="53" colspan="3">&nbsp;</td>
    </tr>
    <tr>
      <td width="25" valign="top">&nbsp;</td>
      <td valign="top"><form name="peoperty_search" method="get" action="search.php" id="f-searchForm2" style="margin:0px">
        <table width="100%" border="0" cellspacing="5" cellpadding="5" class="fcs-biaoti1">
          <tr>
            <td><img src="images/fc1_17.gif" width="262" height="29" align="left" /></td>
          </tr>
          <tr>
            <td><h3>To continue your search in <?=$catename?>, select areas below </h3>
            <p>Click on the area name to view included suburbs.</p></td>
          </tr>
          <tr>
            <td ><table width="100%" border="0" cellspacing="5" cellpadding="2">
             
             
             <?          
          		foreach($submenu_name as $kkk => $vvv) {   
          			   $citystr = implode("<br>",$citys[$kkk]);//"";
          			   echo "<tr><td width=12> <input type=checkbox></td> \r\n";
          			echo "<td><a class=\"commonlink\" href=\"####\" onclick=\"Tip('".$citystr."',TITLE, 'Tips:', WIDTH, 250, SHADOW, true, STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true)\" onmouseover=\"Tip('".$citystr."',TITLE, '$vvv:', WIDTH, 250, HEIGHT ,250,SHADOW, true, STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true)\" onMouseOut=\"UnTip()\">".$vvv."</a>\r\n";//&nbsp;&nbsp;";         
          			echo "</td></tr>\r\n";			
          		} 
          		?>
             
             
              
            </table>
            
          		
       		</td>
          </tr>
          <tr>
            <td><input type="image" name="imageField" src="images/fc1_27.gif" /></td>
          </tr>
        </table>
      </form></td>
      <td valign="top">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center">&nbsp;</td>
          <td width="220" rowspan="2" valign="top"><div id="content_two"></div></td>
        </tr>
        <tr>
          <td align="center" valign="middle">&nbsp;</td>
          </tr>
      </table>      </td>
    </tr>
</table>
  
  
  
    <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td>
	  <script type="text/javascript" src="/js/oneword_yp.js"></script>
	    <script type="text/javascript" src="js/ajax-dynamic-content.js"></script>
	  <DIV id="content_one"></DIV>
<SCRIPT type="text/javascript">
ajax_loadContentx('content_one','othercolumns.html'); 
ajax_loadContentx('content_two','propertyads.html'); 
</SCRIPT> </td>
    </tr>
</table>




  
  <table width="960" height="80" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center"><span class="STYLE9">Homepage    | Profile&nbsp;|     Services    | Advertise  with us    | Contact us</span></td>
    </tr>
</table>
  <map name="Map" id="Map">
    <area shape="poly" coords="68,47,91,28,108,62,108,127,109,176,95,188,81,192,63,203,44,208,26,210,25,193,9,161,3,136,2,108,44,78,53,72,60,56" href="####" />
    <area shape="poly" coords="108,35,111,101,109,128,178,129,179,50,159,34,166,21,168,12,155,10,144,10,131,12,122,14,116,21" href="#####" />
    <area shape="poly" coords="181,51,200,56,205,39,209,15,217,9,225,16,232,34,254,89,263,95,278,118,289,136,288,151,280,156,265,157,239,157,215,156,201,152,193,131,186,128,179,129" href="#####" />
    <area shape="poly" coords="111,129,116,181,144,179,154,189,159,202,173,192,178,188,178,203,183,209,188,217,188,224,197,230,197,215,197,176,197,153,197,141,186,129" href="#" />
    <area shape="poly" coords="201,156,220,158,247,159,263,157,278,157,289,157,288,176,275,189,265,203,258,215,255,224,250,228,243,218,235,214,226,214,222,214,217,207,210,198,205,194,201,194" href="#" />
    <area shape="poly" coords="200,202,201,217,201,232,209,235,222,230,229,235,239,233,249,232,241,219" href="#" />
    <area shape="poly" coords="220,257,238,258,243,258,243,266,241,273,237,278,229,282,224,278,220,269" href="#" />
</map>

</body>
</html>

